import { IMessageBase } from "../../Framework/MQ/IMessageBase";
import { MessageManager } from "../../Framework/MQ/MessageManager";
import { SerializeStream } from "../../Framework/Serialize/SerializeStream";
import { SeqSWrestlePlayerResultHelper } from "./SeqSWrestlePlayerResultHelper";
import { EBattleResult } from "./EBattleResult";
type int = number;
//class SWrestleResult
    
    export  class SWrestleResult extends IMessageBase
    {
        constructor(arg1: Boolean=false)
        {
            
            super();if (arg1) 
            {
                MessageManager.instance().regist(this);
            }
            return;
        }

        public /* override */ getType(): int
        {
            return this._type;
        }

        public /* override */ clone(): IMessageBase
        {
            return new SWrestleResult();
        }

        public /* override */ __write(arg1: SerializeStream): void
        {
            arg1.writeBool(this.isBattler);
            arg1.writeInt(this.expReward);
            arg1.writeInt(this.moneyReward);
            arg1.writeInt(this.itemReward);
            arg1.writeString(this.fightRecordId);
            SeqSWrestlePlayerResultHelper.write(arg1, this.groupOne);
            this.groupOneResult.__write(arg1);
            SeqSWrestlePlayerResultHelper.write(arg1, this.groupTwo);
            this.groupTwoResult.__write(arg1);
            return;
        }

        public /* override */ __read(arg1: SerializeStream): void
        {
            this.isBattler = arg1.readBool();
            this.expReward = arg1.readInt();
            this.moneyReward = arg1.readInt();
            this.itemReward = arg1.readInt();
            this.fightRecordId = arg1.readString();
            this.groupOne = SeqSWrestlePlayerResultHelper.read(arg1);
            this.groupOneResult = EBattleResult.__read(arg1);
            this.groupTwo = SeqSWrestlePlayerResultHelper.read(arg1);
            this.groupTwoResult = EBattleResult.__read(arg1);
            return;
        }

        public /* const */_type: int=609;

        public /* var */isBattler: Boolean;

        public /* var */expReward: int;

        public /* var */moneyReward: int;

        public /* var */itemReward: int;

        public /* var */fightRecordId: string;

        public /* var */groupOne: Array<any>;

        public /* var */groupOneResult: EBattleResult;

        public /* var */groupTwo: Array<any>;

        public /* var */groupTwoResult: EBattleResult;

        public static /* var */_regist: SWrestleResult;
    }

            SWrestleResult._regist = new SWrestleResult(true);
        